<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/3/27
  Time: 1:50
  To change this template use File | Settings | File Templates.
--%>
<%@page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" isELIgnored="false" %>>

<script src="js/jQuery-v3.4.1.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).load(function (){
        //setInterval，每隔1000ms调用function()
        window.setInterval(function(){
            let vWeek,vWeek_s;
            vWeek = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];
            let date =  new Date();
            let year = date.getFullYear();
            let month = date.getMonth() + 1;
            let day = date.getDate();
            let hours = date.getHours();
            let minutes = date.getMinutes();
            let seconds = date.getSeconds();
            vWeek_s = date.getDay();
            $("#time").html(year + "年" + month + "月" + day + "日" + "\t" + hours + ":" + minutes +":" + seconds + "\t" + vWeek[vWeek_s])  ;
        },1000);
    })
    /*$(function (){
        //setInterval，每隔1000ms调用function()
        window.setInterval(function(){
            let vWeek,vWeek_s;
            vWeek = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"];
            let date =  new Date();
            let year = date.getFullYear();
            let month = date.getMonth() + 1;
            let day = date.getDate();
            let hours = date.getHours();
            let minutes = date.getMinutes();
            let seconds = date.getSeconds();
            vWeek_s = date.getDay();
            $("#time").html(year + "年" + month + "月" + day + "日" + "\t" + hours + ":" + minutes +":" + seconds + "\t" + vWeek[vWeek_s])  ;
        },1000);
    })*/
</script>
<div id="header">
    <div id="rightheader">
        <p id="time"></p>
    </div>
    <div id="topheader">
        <h1 id="title">
            <a href="findAll.user">用户管理系统</a>
        </h1>
    </div>
    <div id="navigation">
    </div>
</div>
